<?php

class Model_Specials extends Model{
	
	function __construct(){
    	parent::__construct();
    }
	
    /**
     * @param array &$row
     **/
	protected function _after_select_fetch(&$row){
		static $hash_types = null;
		if($hash_types == null){
			$hash_types = M('SpecialsTypes')->getHash();
		}
		isset($row['type']) && $row['_type'] = $hash_types[$row['type']];
	}
}
?>